package com.ly.dao;

import com.ly.entity.Roles;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;

@Mapper
public interface RolesDao {
    void insert(Roles roles);
    void updateById(Roles roles);
    Roles selectById(Integer id);
    List<Roles> selectAll(Roles roles);
    void deleteById(Integer id);
    Roles queryByAll(Roles rolesQuery);
    void delBatchByIds(@Param("ids") List<Integer> ids);
    @Select("select remark,name,id from roles where  name = #{name}")
    Roles selectByRoleName(@Param("name") String name);
}
